import { configureStore } from "@reduxjs/toolkit";
import logger from "redux-logger";
import counterSlice from "./features/counterSlice";
import timerSlice from "./features/timerSlice";

const store = configureStore({
    reducer: {
        counter: counterSlice,
        timer: timerSlice,
    },
    middleware: (getDefaultMiddleware) => getDefaultMiddleware().concat(logger),
});

export default store;
